home *** CD-ROM | disk | FTP | other *** search
/ SGI Varsity Update 1998 August / SGI Varsity Update 1998 August.iso / dist / dist6.5 / il_dev.idb / usr / include / il / ilHwLut.h.z / ilHwLut.h
C/C++ Source or Header  |  1998-07-29  |  2KB  |  56 lines

  1. #if 0 
  2.  
  3.     Copyright (c) 1991 SGI   All Rights Reserved
  4.     THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF SGI
  5.     The copyright notice above does not evidence any
  6.     actual or intended publication of such source code,
  7.     and is an unpublished work by Silicon Graphics, Inc.
  8.     This material contains CONFIDENTIAL INFORMATION that
  9.     is the property of Silicon Graphics, Inc. Any use,
  10.     duplication or disclosure not specifically authorized
  11.     by Silicon Graphics is strictly prohibited.
  12.     
  13.     RESTRICTED RIGHTS LEGEND:
  14.     
  15.     Use, duplication or disclosure by the Government is
  16.     subject to restrictions as set forth in subdivision
  17.     (c)(1)(ii) of the Rights in Technical Data and Computer
  18.     Software clause at DFARS 52.227-7013, and/or in similar
  19.     or successor clauses in the FAR, DOD or NASA FAR
  20.     Supplement.  Unpublished- rights reserved under the
  21.     Copyright Laws of the United States.  Contractor is
  22.     SILICON GRAPHICS, INC., 2011 N. Shoreline Blvd.,
  23.     Mountain View, CA 94039-7311
  24.  
  25. #endif
  26.  
  27. #ifndef _ilHwLut_h_
  28. #define _ilHwLut_h_
  29.  
  30. #include <GL/gl.h>
  31. #include <ifl/iflTypes.h>
  32.  
  33. class ilHwLut {
  34. public:
  35.     int length, nbytes;
  36.     int numChannels;
  37.     GLenum OGLformat;    // corresponds to parent image color model
  38.     GLenum OGLtype;
  39.     void *data;
  40.  
  41.     // constructor
  42.     ilHwLut(int len=0, int chans=0, iflColorModel format=iflRGB, 
  43.         iflDataType type=iflUChar, void *lutData=NULL);
  44.     
  45.     void init(int len, int chans, iflColorModel format, 
  46.           iflDataType type, void *lutData=NULL);
  47.  
  48.     // copy operator
  49.     void operator=(const ilHwLut &lut);
  50.     
  51.     // destructor
  52.     ~ilHwLut();
  53. };
  54.  
  55. #endif
  56.